package com.leyou.item.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.leyou.common.dto.PageDTO;
import com.leyou.item.dto.BrandDTO;
import com.leyou.item.entity.Brand;

import java.util.List;


public interface BrandService extends IService<Brand> {
    List<BrandDTO> findBrandsByIds(List<Long> ids);

    BrandDTO findBrandById(Long id);

    PageDTO<BrandDTO> findBrandByPage(Long page, Long rows, String key);

    List<BrandDTO> findBrandByCategoryId(Long id);

    void addBrand(BrandDTO brandDTO);

    void updateBrand(BrandDTO brandDTO);

    void deleteBrand(Long id);
}